//
//  ModuleViewController.swift
//  TestMeeting
//
//  Created by json on 2020/12/28.
//

import UIKit
import TangramKit

class ModuleViewController: MyViewController {

    private var layout: TGLinearLayout?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        layout = TGLinearLayout(TGOrientation.vert)
        layout?.tg_margin(0)
        self.rootLayout?.addSubview(layout!)
        
        layout?.tg_insetsPaddingFromSafeArea = UIRectEdge.all
        
        let signleBtn = UIButton(type: UIButton.ButtonType.custom)
        signleBtn.tg_horzMargin(0)
        signleBtn.tg_height.equal(50)
        signleBtn.setTitle("发起单聊", for: UIControl.State.normal)
        signleBtn.backgroundColor = UIColor.black.withAlphaComponent(0.2)
        signleBtn.addTarget(self, action: #selector(singleMeet), for: UIControl.Event.touchUpInside);
        layout?.addSubview(signleBtn)
    }
    @objc func singleMeet() {
        self.navigationController?.pushViewController(SingleMeetingViewController.init(), animated: true)
    }

}
